﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace NUnitTestProjectPlayground.BlackSwap
{
    [TestFixture]
    class Test3
    {
        private string word, word2, word3;

        //Arrange, Act, Assert (AAA) pattern. Tests structured using AAA
        //SetUp is run before every test;
        [SetUp]
        public void SetUp()
        {
            word = "Milan";
            word2 = "Milas";
            word3 = "Marko";
        }

        //run after every test
        [TearDown]
        public void TierDown()
        {
            
        }

        [Test]
        public void TestNameChange()
        {
            word = "Petar";

            Assert.AreEqual(word, "Petar");
            Assert.AreEqual(word2, "Milas");
            Assert.AreEqual(word3, "Marko");
        }

        [Test]
        public void TestChangeMiddleName()
        {
            word3 = "Boja";

            Assert.AreEqual(word, "Milan");
            Assert.AreEqual(word2, "Milas");
            Assert.AreEqual(word3, "Boja");
        }

        [Test]
        public void TestChangeSurname()
        {
            word2 = "Petrovic";

            Assert.AreEqual(word, "Petar");
            Assert.AreEqual(word2, "Petrovic");
            Assert.AreEqual(word3, "Marko");
        }
    }
}